﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Pages_SearchSanPham : System.Web.UI.UserControl
{
    BLLSanPham bllSanPham;
    protected void Page_Load(object sender, EventArgs e)
    {
        bllSanPham = new BLLSanPham();
        if (!IsPostBack)
        {
            // Add Data for Combobox Danh Muc
            cbDanhMuc.DataTextField = "TENDM";
            cbDanhMuc.DataValueField = "MADM";
            cbDanhMuc.DataSource = bllSanPham.iDanhMuc.getAllDanhMuc();
            cbDanhMuc.DataBind();

            // Add Data for Combobox San Pham
            cbTenHoa.DataTextField = "TENSP";
            cbTenHoa.DataValueField = "MASP";
            cbTenHoa.DataSource = bllSanPham.iSanPham.SelectTopSanPham(1);
            cbTenHoa.DataBind();



        }
    }
    protected void btSearch_Click(object sender, EventArgs e)
    {
        
    }
}